import {
  MessageBox
} from 'element-ui'

export const confirm = (message) => {
  return new Promise((resolve, reject) => {
    MessageBox.confirm(message, '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    }).then(() => {
      resolve()
    }).catch(() => {
    })
  })
}
